package org.example.proxy;

import java.lang.reflect.Proxy;

public class UserServiceFactory {
    public static <T> T getUserService(Class<T> clazz) {
        return (T) Proxy.newProxyInstance(
                clazz.getClassLoader(),
                new Class[]{clazz},
                new UserServiceDynamicProxy());
    }
}
